OK Button:
Accept the settings and close the dialog.